﻿using CkSoftware.GroupMe.Sdk.Core.Dao;
using CkSoftware.GroupMe.Sdk.Core.Interfaces;
using CkSoftware.GroupMe.Sdk.Images.Commands;
using Newtonsoft.Json;

namespace CkSoftware.GroupMe.Sdk.Images.Dao
{
	/// <summary>
	/// The response of the <see cref="UploadPictureCommand"/>.
	/// </summary>
	public class UploadPictureResponse : IWebApiResult
	{
		/// <summary>
		/// The new picture data of the uploaded picture.
		/// </summary>
		[JsonProperty(PropertyName = "payload")]
		public PictureData Picture { get; set; }

		/// <summary>
		/// On the image-api there is no metadata available.
		/// </summary>
		[JsonIgnore]
		public MetaData Meta { get; set; }
	}
}